﻿using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 盲板信息基础输入参数
    /// </summary>
    public class BoardBaseBaseInput
    {
        /// <summary>
        /// 盲板编号
        /// </summary>
        public virtual string? BoardNo { get; set; }

    /// <summary>
    /// 路由编号
    /// </summary>
    public virtual string? RouteNo { get; set; }
    /// <summary>
    /// 盲板所属设备
    /// </summary>
    public virtual long? BoardDevice { get; set; }
        
        /// <summary>
        /// 盲板位置
        /// </summary>
        public virtual string? BoardPlace { get; set; }
        
        /// <summary>
        /// 盲板状态
        /// </summary>
        public virtual string? BoardState { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string? Note { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public virtual long? CreateOrgId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public virtual string? CreateOrgName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 盲板信息分页查询输入参数
    /// </summary>
    public class BoardBaseInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 盲板编号
        /// </summary>
        public string? BoardNo { get; set; }

    /// <summary>
    /// 路由编号
    /// </summary>
    public string? RouteNo { get; set; }
    /// <summary>
    /// 盲板所属设备
    /// </summary>
    public long? BoardDevice { get; set; }
        
        /// <summary>
        /// 盲板位置
        /// </summary>
        public string? BoardPlace { get; set; }
        
        /// <summary>
        /// 盲板状态
        /// </summary>
        public string? BoardState { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string? Note { get; set; }
        
    }

    /// <summary>
    /// 盲板信息增加输入参数
    /// </summary>
    public class AddBoardBaseInput : BoardBaseBaseInput
    {
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 盲板信息删除输入参数
    /// </summary>
    public class DeleteBoardBaseInput : BaseIdInput
    {
    }

    /// <summary>
    /// 盲板信息更新输入参数
    /// </summary>
    public class UpdateBoardBaseInput : BoardBaseBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 盲板信息主键查询输入参数
    /// </summary>
    public class QueryByIdBoardBaseInput : DeleteBoardBaseInput
    {

    }
